package com.kuang.single;

public class Holder {


    private Holder(){//单例不安全，反射  枚举
    }
    public static Holder getInstace(){
        return InnerClass.HOLDER;
    }
    public static class InnerClass{
        private static final Holder HOLDER = new Holder();
    }
}
